{include file="../header.html" title="用户列表"}

	<div id="main">
		<div id="main_title">您当前处于 
			<span class="weightFont">用户管理</span> >> 
			<span class="softFont">用户列表</span>
		</div>
		<div id="main_body">
			<button class="outputBtn">导出数据</button>
			<button class="uploadBtn">导入数据</button>
			<div class="searchBox">
				<input type="text" id="searchKey" name="searchKey" placeholder="输入账号或真实姓名" />
				<span class="searchBtn">搜索</span>
			</div>
			{if $memberList}
			<center>
				<form id="listForm">
					<table id="memberList" cellpadding="5" cellspacing="0">
						<tr>
							<th>账号</th>
							<th>真实姓名</th>
							<th>性别</th>
							<th class="wider">操作</th>
						</tr>
						{foreach $memberList as $member}
						<tr>
							<td>
								<a href="{$site_url}admin/member_detail.php?uid={$member['uid']}" class="editBtn">
									{$member['username']}
								</a>
							</td>
							<td>{$member['realname']} </td>
							<td>{$sex[$member['sex']]}</td>
							<td>
								<a href="{$site_url}admin/member_detail.php?uid={$member['uid']}" class="editBtn">
									修改信息
								</a>
								<span class="delBtn" name="{$member['uid']}">删除</span>
							</td>
						</tr>
						{/foreach}
					</table>
				</form>
				<!--翻页条-->
				{if $show_pageBox}
				<div class="pageDiv">{$pageBox}</div>
				{/if}
			</center>
			{else}
			<div>暂时没有用户</div>
			{/if}
		</div>
	</div>

{include file="../footer.html"}